package miiteen.customsportal.film.service;


import miiteen.customsportal.film.beans.FilmResource;
import miiteen.customsportal.film.dao.FilmResourceDao;
import miiteen.data.dao.BaseDao;
import miiteen.data.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Name: CustomsPortal_Film_Info
 * Des: -Service
 * Author: yulp
 * Date: 2020-07-03
 */
@Service("filmResourceService")
public class FilmResourceService extends BaseServiceImpl<FilmResource> {

    @Autowired
    private FilmResourceDao filmResourceDao;

    @Override
    protected BaseDao<FilmResource> getDao() {
        return filmResourceDao;
    }
    public List<FilmResource> getByImgSrc(Map map){
        return filmResourceDao.getByImgSrc(map);
    }
    public int deleteNewsInfoId(String id){
        return filmResourceDao.deleteNewsInfoId(id);
    }
}
